package com.design.mediator.traffic2;

public class MediatorFlightDemo {
    public static void main(String[] args) {
        FlightMediator westernCenter = new WesternFlightCenter();
        FlightMediator easternCenter = new EasternFlightCenter();

        Flight flight1 = new Flight("FL001", westernCenter);
        Flight flight2 = new Flight("FL002", easternCenter);

        flight1.requestLanding();
        flight2.requestLanding();

        flight1.depart();
        flight2.depart();
    }
}
